<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
  <script>
            async function lp(){
                    let m=1;
                    let b =0;
                    let c = 0;
                   b= await test(10)
                   c = await test(b);
                   console.log(c);
            }
             function test(a){
               return  new Promise(function (win,err){
                         setTimeout(()=>{
                               win(a+10);
                         },2000)
                 })
             }
             lp();
  </script>
</body>
</html>